package com.yy.micro.magic.data.repository;

import com.yy.micro.magic.data.entity.MagicPlanScheduleEntity;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import javax.validation.constraints.NotNull;

@Repository
public interface MagicPlanScheduleRepository extends JpaRepository<MagicPlanScheduleEntity,Long> {

    MagicPlanScheduleEntity findByPlanCode(@NotNull String planCode);

    MagicPlanScheduleEntity findByPlanCodeAndVersion(@NotNull String planCode, String version);
}
